package com.lovegu.linked_list.__test__;

import com.lovegu.linked_list.impl.LinkedList;
import com.lovegu.linked_list.List;

/**
 * <p>
 * LinkedList 测试类
 * </p>
 *
 * @author 老顾
 * @since 2023/3/20
 */
public class LinkedListTest {

    public static void main(String[] args) {
        List<String> list = new LinkedList<>();

        list.add("a");
        list.addFirst("b");
        list.addLast("c");
        list.printLinkedList();

        list.addFirst("d");
        list.remove("b");
        list.printLinkedList();
    }
}
